<?php
/**
 * Description of EmptyResponse
 *
 * @author antoine
 */
class EmptyResponse implements Response {
    /**
     *
     * @var int
     */
    private $code;
    
    /**
     *
     * @var string
     */
    private $message;
    
    /**
     *
     * @param int $code
     * @param string $message 
     */
    public function __construct($code=200, $message='Ok') {
        $this->code = $code;
        $this->message = $message;
    }
    
    public function output() {
        if ($this->code !== 200) { // 200 is the default response code anyway
            header("HTTP/1.0 {$this->code} {$this->message}");
        }
    }
}
